import request from '@/utils/request'

// 查询玩家副将列表
export function listEntourage(query) {
  return request({
    url: '/system/entourage/list',
    method: 'get',
    params: query
  })
}

// 查询玩家副将详细
export function getEntourage(id) {
  return request({
    url: '/system/entourage/' + id,
    method: 'get'
  })
}

// 新增玩家副将
export function addEntourage(data) {
  return request({
    url: '/system/entourage',
    method: 'post',
    data: data
  })
}

// 修改玩家副将
export function updateEntourage(data) {
  return request({
    url: '/system/entourage',
    method: 'put',
    data: data
  })
}

// 删除玩家副将
export function delEntourage(id) {
  return request({
    url: '/system/entourage/' + id,
    method: 'delete'
  })
}
